package com.example.springboot.controller.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.springboot.entity.Articles;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
//文章
@Data
public class ArticleDTO extends Articles {
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
    @ApiModelProperty("头像")
    private String avatar;
    @ApiModelProperty("名字")
    private String nickName;
}
